package com.zhl.microservcie.order.contoller;

import com.zhl.microservcie.order.pojo.Order;
import com.zhl.microservcie.order.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: zhl-microservcie-parent
 * @author: zhl
 * @create: 2019-03-04
 **/
@RestController
public class OrderController {
    @Autowired
    private OrderService orderService;

    @GetMapping("order/{orderId}")
    public Order queryOrderById(@PathVariable("orderId") String orderId){
        return orderService.queryOrderById(orderId);
    }
}
